class AssertUtil:
    # 封装断言的方法
    # ihrm断言
    @classmethod
    def ihrm_assert(cls, login_re, status_code, success, code, message):
        assert status_code == login_re.status_code
        assert success == login_re.json().get("success")
        assert code == login_re.json().get("code")
        assert message == login_re.json().get("message")

    # tpshop断言
    @classmethod
    def tpshop_assert(cls, login_re, status_code, status, msg):
        assert status_code == login_re.status_code
        assert status == login_re.json().get("status")
        assert msg == login_re.json().get("msg")
